import tushare as ts
import pandas as pd
from my_token import *


pd.set_option("display.max_rows", None, "display.max_columns", None)
# https://tushare.pro/

ts.set_token(token1)
pro = ts.pro_api()
df = pro.query('daily', ts_code='000001.SZ', start_date='20220101', end_date='20220228')
print(df)

df = pro.fx_daily(ts_code='USDCNH.FXCM', start_date='20220201', end_date='20220228')
print(df)
